// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
  compatibilityDate: "2024-11-01",
  devtools: { enabled: true },
  modules: [
    "@nuxt/content",
    "@nuxtjs/tailwindcss",
    "@nuxtjs/color-mode",
    "@pinia/nuxt",
    "@element-plus/nuxt",
  ],
  // content: {
  //   markdown: {
  //     toc: {
  //       depth: 3,
  //       searchDepth: 3,
  //     },
  //     remarkPlugins: ["remark-gfm"],
  //     rehypePlugins: ["rehype-external-links"],
  //   },
  //   highlight: {
  //     theme: "github-dark",
  //   },
  // },
  elementPlus: {
    importStyle: "css",
    themes: ["dark"],
  },
  colorMode: {
    classSuffix: "",
    preference: "system",
    fallback: "light",
  },
  app: {
    head: {
      title: "我的博客",
      meta: [
        { charset: "utf-8" },
        { name: "viewport", content: "width=device-width, initial-scale=1" },
      ],
    },
  },
  content: {
    highlight: {
      theme: {
        default: "github-light",
        dark: "github-dark",
      },
    },
  },
});
